package com.infore.airsupervise.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 实时调度-综合指数-表格实体类
 * <p>
 * 作者: dingxinlin
 * 创建日期: 2017/8/21 17:58
 */

public class DispatchSynthesisChartE {

    // 标题
    private String title;
    // X轴显示的类别
    private List<String> categories;
    // 数据系列集合
    private List<Series> series;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<String> getCategories() {
        if (categories == null) {
            categories = new ArrayList<>();
        }
        return categories;
    }

    public void setCategories(List<String> categories) {
        this.categories = categories;
    }

    public List<Series> getSeries() {
        if (series == null) {
            series = new ArrayList<>();
        }
        return series;
    }

    public void setSeries(List<Series> series) {
        this.series = series;
    }

    /**
     * 数据系列
     */
    public static class Series {

        // 系列名称
        private String name;
        // 系列值集合
        private List<Float> data;

        public String getName() {
            return name;
        }

        public void setName(String seriesName) {
            this.name = seriesName;
        }

        public List<Float> getData() {
            if (data == null) {
                data = new ArrayList<>();
            }
            return data;
        }

        public void setData(List<Float> seriesData) {
            this.data = seriesData;
        }
    }
}
